READ ME
Title: Language Cues and Perceptions of Nationalism
Journal: Political Behavior
Authors: William O'Brochta and Patrick Cunha Silva
Contact information: wobrochta@tlu.edu|pcunhasilva@luc.edu
#====================================================================================

## Note: The original data used in the Facebook analysis is propretary from Meta. The authors cannot provide the raw data. The file in this replication archive is a pre-processed data version without Facebook identifiers and with the text translated into English. 

## R-files:
# 1_LoadLibraries.R: Load the necessary libraries and custom functions
# 2_H1_analysis.R: run analysis for H1 
# 3_H2_analysis.R: run analysis for H2
# 4_FB_analysis.R: run STM models for entire corpus 
# 5_FB_analysis_alec.R: run STM models for President's posts
# 6_FB_analysis_fe.R: run STM models for President's posts

## Datasets:
# VotersOwnAttitutes.RData: Dataset used for the analysis in file 2_H1_analysis.R
# VotersTowardPoliticians.RData: Dataset used for the analysis in file 3_H2_analysis.R
# fb_data.RData: Facebook data used for the analysis in files 4_FB_analysis.R, 5_FB_analysis_alec.R, and 6_FB_analysis_fe.R

## R Objects:
# storage.RData: object with output produced by searchK() in 4_FB_analysis.R
# storage_alec.RData: object with output produced by searchK() in 5_FB_analysis_alec.R
# outModel: object with output produced by stm() in 4_FB_analysis.R
# outModel_alec: object with output produced by stm() in 5_FB_analysis_alec.R
# outModel_fe: object with output produced by stm() in 6_FB_analysis_fe.R
